home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Workspace / WrapperInspector / Source / WrapperInspector.h < prev    next >
Text File  |  1995-06-12  |  3KB  |  83 lines

  1. //----------------------------------------------------------------------------------------------------
  2. //
  3. //    WrapperInspector
  4. //
  5. //    Inherits From:        WMInspector
  6. //
  7. //    Declared In:        WrapperInspector.h
  8. //
  9. //    Class Description
  10. //
  11. //        WrapperInspector manages inspection of 'bundled' WM files.
  12. //        WrapperInspector is the class registered with WM to inspect
  13. //        files with extensions such as 'app', 'bundle', 'rtfd', etc.  The
  14. //        file bundle.registry contains all WM registration information.  
  15. //
  16. //        WrapperInspector displays the contents of the 'wrapped' WM
  17. //        file in a browser.  'Sub' Inspectors provide simple inspection
  18. //        of these files when you select from this browser.
  19. //
  20. //        SubInspectors work on specific file extensions.  An 
  21. //        NXStringTable is used to hold extension/subinspector class
  22. //        registration.  For example, 'eps', and 'tiff' are keys in the 
  23. //        string table, ImageSubInspector is the value.  It represents the
  24. //        subinspector class name that will in turn be messaged to 
  25. //        provide inspection when an 'eps' or 'tiff' is selected.  You may 
  26. //        add new subinspectors and/or register new extensions.
  27. //
  28. //    Disclaimer
  29. //
  30. //        You may freely copy, distribute and reuse this software and its
  31. //        associated documentation. I disclaim any warranty of any kind, 
  32. //        expressed or implied, as to its fitness for any particular use.
  33. //
  34. //----------------------------------------------------------------------------------------------------
  35. #import <appkit/appkit.h>
  36. #import <apps/Workspace.h>
  37.  
  38. @interface WrapperInspector:WMInspector
  39. {
  40.     id    splitView;        //  NXSplitView for browser/subinspectors.
  41.     id    browser;            //  File Browser.
  42.     id    inspectorView;    //  Where Inspector Views will be displayed.
  43.     id    subPathText;        //  TextField for current path.
  44.  
  45.     id    messageView;    //  View for generic message display.
  46.     id    messageText;        //  TextField for generic messages.
  47.  
  48.     id    inspectorStrings;    //  NXStringTable with SubInspector classnames.
  49. }
  50.  
  51. //----------------------------------------------------------------------------------------------------
  52. //  Action Methods
  53. //----------------------------------------------------------------------------------------------------
  54. - fileSelected: sender;
  55. - open: sender;
  56. - openAsFolder:sender;
  57.  
  58.  
  59. //----------------------------------------------------------------------------------------------------
  60. //  Inspection Methods
  61. //----------------------------------------------------------------------------------------------------
  62. - inspect: (STR)currentPath usingInspectorClass: (STR)inspectorClass;
  63. - noInspector;
  64. - selectionNotADirectory;
  65.  
  66.  
  67. //----------------------------------------------------------------------------------------------------
  68. //  Selection Path Methods
  69. //----------------------------------------------------------------------------------------------------
  70. - (STR) currentPath;
  71. - (STR) extension: (const char*) path;
  72. - (BOOL)isDirectory;
  73. - updateSubPath;
  74.  
  75.  
  76. //----------------------------------------------------------------------------------------------------
  77. //  Browser Delegate Method
  78. //----------------------------------------------------------------------------------------------------
  79. - (int) browser: aBrowser fillMatrix: aMatrix inColumn: (int)aColumn;
  80.  
  81.  
  82. @end
  83.